<?php

namespace app\common\util\jsonscm;

class SalesConfigValidator extends JsonScmValidator
{
    protected static $schema = <<<JSON
    {
        "type": "object",
        "properties": {
            "integral_magnification": {
                "type": "number",
                "title": "积分倍率",
                "description": "订单支付获得的积分倍率，金额 * 倍率"
            },
            "integral_threshold": {
                "type": "number",
                "title": "获取积分的价格门槛",
                "description": "一笔订单大于多少元才会获得积分"
            },
            "integral_checkin": {
                "type": "integer",
                "title": "签到积分"
            },
            "integral_bonus": {
                "type": "integer",
                "title": "浏览商城奖励积分"
            },
            "integral_comment": {
                "type": "integer",
                "title": "10字带图评论赠送积分"
            }
        },
        "x-apifox-orders": [
            "integral_magnification",
            "integral_threshold",
            "integral_checkin",
            "integral_bonus",
            "integral_comment"
        ],
        "required": [
            "integral_magnification",
            "integral_threshold",
            "integral_checkin",
            "integral_bonus",
            "integral_comment"
        ],
        "title": "全局销售配置"
    }
    JSON;
}